Returns the ReadOnlyCollection<SequencingRuleConditionNodeReader> containing the <imsss:ruleCondition> nodes inside the <imsss:ruleConditions>.
Parent Type: SequencingRuleNodeReader
Namespace: Microsoft.LearningComponents.Manifest
Assembly: Microsoft.LearningComponents.dll
| C# |
|
public ReadOnlyCollection<SequencingRuleConditionNodeReader> Conditions { get; } |
| Exception type | Condition |
| InvalidPackageException | In |
The ReadOnlyCollection<SequencingRuleConditionNodeReader> returned from this method is not populated until properties or methods on it are accessed. This means that in ManifestReaderSettings.FixScormRequirementViolations=false, InvalidPackageException may be thrown if there are invalid <imsss:ruleCondition> nodes in the list (e.g. nodes containing illegal attribute values.)
In ManifestReaderSettings.FixScormRequirementViolations=true, warnings are added to the log and invalid <imsss:ruleCondition> nodes are ignored.
If there are no <imsss:ruleCondition> nodes, an empty ReadOnlyCollection<SequencingRuleConditionNodeReader> is returned.
Iterate through all rule conditions for the post condition rules in a manifest's sequencing collection.
| C# |
foreach(SequencingNodeReader sequencing in manifest.SequencingCollection.Values)
{
foreach (SequencingRuleNodeReader rule in sequencing.PostConditionRules)
{
foreach (SequencingRuleConditionNodeReader condition in rule.Conditions)
{
// Use the SequencingRuleConditionNodeReader
}
}
}
|